search for: signe

Displaying 20 results from an estimated 67122 matches for "signe".

Did you mean: signed
2019 Feb 14
2
SMB Signing with "map to guest = " options
Hi, I'm using samba-4.7.x I have some confusions over "map to guest=" options with setting SMB Signing 1. Set "*Server signing =auto*", "*map to guest=bad uid*" and set "client signing in windows 2k12 server group policy" to "Microsoft network client: Digitally sign communications (Always)” = *Disable*" SMB_Server is joined to Windows 2k12
2018 Apr 04
2
llvm::PointerIntPair -- is this by design or a bug?
It won't move the sign bit, so negative values won't fit, unless you have a 3 bit signed type ;) Note that if you assign negative values to and then read from a signed bit-field, you would do sign extension. So 3-bit signed types do exist in C++. It begs the question why PointerIntPair supports signed int types if it always loses the sign. Is it just to avoid signed/unsigned compari...
2018 Apr 04
3
llvm::PointerIntPair -- is this by design or a bug?
Rather than “fixing” it, it might be better to support a separate method for signed extension. My reasoning is as follows: int x = 7; llvm::PointerIntPair<double*, 3, int> pip; pip.setInt(x); There could be code out there that expects pip.getInt() to return 7 and not -1. So if you really want to set a negative and return a negative value, a separate method setSignedInt a...
2018 Apr 04
2
llvm::PointerIntPair -- is this by design or a bug?
...gue that bitfield sign extensions are surprising and are usually a source of bugs. It would be much more explicit and less error prone for the user to write the sign extension if they want it. By extension, it seems good that PointerIntPair doesn't do sign extension when the type happens to be signed. On Wed, Apr 4, 2018 at 9:47 AM David Blaikie via llvm-dev < llvm-dev at lists.llvm.org> wrote: > I think it'd be reasonable to model this on the same behavior as int to > short to int round-tripping & not to speculate that there might be code > relying on the existing beh...
2018 Apr 04
2
llvm::PointerIntPair -- is this by design or a bug?
On 4 Apr 2018, at 11:01, Florian Hahn via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi, > > On 04/04/2018 05:34, Riyaz Puthiyapurayil via llvm-dev wrote: >> llvm::PointerIntPair<double*, 3, signed> P; >> P.setInt(-4); >> Ideally, the value range for a 3-bit signed integer should be [-4,3]. But the above call to setInt will fail. Essentially, the signed int field in PointerIntPair is behaving the same as an 3-bit unsigned field which has the legal value range of [0,7]. Is this...
2012 Feb 09
3
[LLVMdev] x86-64 sign extension for parameters and return values
...ign extension for parameters and return values on x86-64. I could not find a clear answer in the x86-64 ABI [1] concerning whether parameters should be sign extended by the caller or callee and similarly whether return values should be sign extended by the caller or callee. Consider a simple 'signed char' division routine: signed char sdiv(signed char x, signed char y) { return x / y; } On my Fedora 16 Linux host GCC 4.6.2 produces: sdiv: .LFB11: .cfi_startproc movsbl %dil, %eax movsbl %sil, %esi movl %eax, %edx sarl $31, %edx i...
2018 Apr 04
0
llvm::PointerIntPair -- is this by design or a bug?
...ming this is by design/shouldn't be fixed just because it's the way it is today). On Wed, Apr 4, 2018 at 7:16 AM Riyaz Puthiyapurayil via llvm-dev < llvm-dev at lists.llvm.org> wrote: > It won't move the sign bit, so negative values won't fit, unless you have > a 3 bit signed type ;) > > > Note that if you assign negative values to and then read from a signed > bit-field, you would do sign extension. So 3-bit signed types do exist in > C++. > > It begs the question why PointerIntPair supports signed int types if it > always loses the sign. Is it...
2019 Feb 14
3
SMB Signing with "map to guest = " options
Hi, I'm using samba-4.7.x I have some confusions over "map to guest=" options with setting SMB Signing 1. Set "*Server signing =auto*", "*map to guest=bad uid*" and set "client signing in windows 2k12 server group policy" to "Microsoft network client: Digitally sign communications (Always)” = *Disable*" SMB_Server is joined to Windows 2k12
2018 Apr 04
0
llvm::PointerIntPair -- is this by design or a bug?
...ting to see if anything breaks - and if nothing does, moving to the behavior rather than supporting both. On Wed, Apr 4, 2018 at 9:27 AM Riyaz Puthiyapurayil < Riyaz.Puthiyapurayil at synopsys.com> wrote: > Rather than “fixing” it, it might be better to support a separate method > for signed extension. My reasoning is as follows: > > > > int x = 7; > > llvm::PointerIntPair<double*, 3, int> pip; > > pip.setInt(x); > > > > There could be code out there that expects pip.getInt() to return 7 and > not -1. > > > > So if you really wa...
2018 Apr 04
0
llvm::PointerIntPair -- is this by design or a bug?
The sign extension is correct. Otherwise setInt(-1) won’t work. If you don’t want sign extension, then use ‘unsigned’ and not ‘int’ in the template arguments. > On Apr 4, 2018, at 14:34, Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I'd argue that bitfield sign extensions are surprising and are usually a source of bugs. It would be much more explicit and less error prone...
2010 Sep 16
2
problem reading Matlab file into R
...experience with Matlab, so changing the mat file or saving it in a different format is not an option for me. Kind regards, Claude > foo <- readMat("riversurveyor.mat", verbose=TRUE) Trying to read MAT v5 file stream... List of 7 $ type : chr "miMATRIX" $ signed : logi NA $ sizeOf : int 0 $ what : num 0 $ nbrOfBytes: int 2848 $ padding : num 0 $ compressed: logi FALSE List of 7 $ type : chr "miMATRIX" $ signed : logi NA $ sizeOf : int 0 $ what : num 0...
2010 Oct 20
4
Changing sign on absolute numbers 0 problems
Hi, I am trying to do some calculations turning DMS data to decimal degrees using the formula (D+(M/60)+(S/3600)), some of the D's involve -ve numbers, the easiest way to do the calculation is to use absolute numbers then use the 'sign' function in R to change the answer back to the correct -ve or +ve, for example, if; D<--69 M<-8 S<-10 then decimal<-D+(M/60)+(S/3600)
2018 Apr 04
0
llvm::PointerIntPair -- is this by design or a bug?
On 04/04/2018 11:15, David Chisnall wrote: > On 4 Apr 2018, at 11:01, Florian Hahn via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi, >> >> On 04/04/2018 05:34, Riyaz Puthiyapurayil via llvm-dev wrote: >>> llvm::PointerIntPair<double*, 3, signed> P; >>> P.setInt(-4); >>> Ideally, the value range for a 3-bit signed integer should be [-4,3]. But the above call to setInt will fail. Essentially, the signed int field in PointerIntPair is behaving the same as an 3-bit unsigned field which has the legal value range of [0,7]....
2012 Feb 23
3
[LLVMdev] Simple question on sign
how does llvm decide when to use unsigned instructions then? such as unsigned adds and loads? I'm trying to describe some multiply shift ops and getting a bit stuck differentiating between signed and unsigned. sam Eli Friedman-2 wrote: > > On Wed, Feb 22, 2012 at 4:28 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: &gt...
2018 Apr 05
1
llvm::PointerIntPair -- is this by design or a bug?
...nlike bit-fields, llvm::PointerIntPair has asserts checking that the int value is within range. So if you assign an out of range value, it should fail with an assertion: llvm::PointerIntPair<SomeType*, 3, int> pip; pip.setInt(7); // can be made to fail as the valid range // of signed 3-bit values is [-4:3] The above code does not currently fail and instead fails for pip.setInt arguments with values in [-4:-1] which is actually unexpected and the reason I started this email thread. /Riyaz From: David Zarzycki [mailto:dave at znu.io] Sent: Wednesday, April 4, 2018 11:47 AM To...
2020 Aug 02
2
Boot failed on latest CentOS 7 update
...m to have made one more step away from ?our? computers being _our computers_. Am I wrong? > > Valeri > Microsoft are the Certificate Authority for SecureBoot and most SB-enabled hardware (most x86 hardware) comes with a copy of the Microsoft key preinstalled allowing binaries that are signed by Microsoft to work. In the case of linux, that is the shim which becomes the root of trust to load everything else. If you are not happy with that you can always become your own certificate authority by generating your own keys, install your signing keys in the hardware's firmware (MOK...
2019 Feb 14
0
SMB Signing with "map to guest = " options
On Thu, 14 Feb 2019 05:52:13 -0600 (CST) shivappa Sangapur via samba <samba at lists.samba.org> wrote: > Hi, > > I'm using samba-4.7.x > I have some confusions over "map to guest=" options with setting SMB > Signing 1. Set "*Server signing =auto*", "*map to guest=bad uid*" and > set "client signing in windows 2k12 server group
2013 Mar 04
2
Access to Samba-Shares with "sign communications = mandatory"
Hello Samba-Specialists, which smb.conf-options do I have to set to get access to a Samba-Share from a Windows7-Machine, if the Windows7-Machine is very restrictive configured regarding 'smb-signing'? Windows7-Configuration: Microsoft network client: Digitally sign communications (if server agrees): Enabled Microsoft network client: Digitally sign communications (always): Enabled
2009 Dec 11
3
`mgp[1:3]' are of differing sign (PR#14130)
Full_Name: Cornell Gonschior Version: 2.10.0 OS: Linux Submission from: (NULL) (212.201.28.40) Hi, in the introduction to R, you can find the following sentence in the par() chapter: "Use tck=0.01 and mgp=c(1,-1.5,0) for internal tick marks." I thought that's nice, because I wanted to have tick marks and tick labels inside and the axis title outside. But: > plot(z, las=1,
2011 Oct 18
1
[LLVMdev] How to infer sign information from LLVM IR?
I'm implementing an integer bounds analysis (i.e., for each variable compute its lower and upper bound) as a LLVM pass. My objective is to identify potential overflows in both signed and unsigned C integers. To do that I need to know the sign of each integer. However, we know that LLVM IR does not keep sign information explicitly. My understanding is that the only instructions with explicit sign information is ICmp (e.g., icmp ugt ....) for the case of integers. Thus, sign i...