Displaying 20 results from an estimated 49 matches for "atof".
Did you mean:
atob
2014 Apr 30
2
make fullcheck fails: strtod/atof and locale
make fullcheck fails on my computer: flac cannot recognize --skip option
that contains decimal point, e.g. "--skip=1.234".
System locale uses comma as a separator, so strtod/atof expect comma, not point,
and "make fullcheck" fails.
Here's what I can see in FLAC source code:
atof() function found in:
file: src/share/grabbag/seektable.c
function: grabbag__seektable_convert_specification_to_template()
(option: -S)
strtod() function found in:
src/flac/mai...
2005 Apr 25
2
How about a --min-size option, next to --max-size
There's a rather old bug report in Debian's bug tracking system
(see http://bugs.debian.org/27126) about wanting to be able to specify
the maximum file size, as well as the minimum file size. Here's the
text:
Sometimes, it's useful to specify a file size range one is
interested in.
For example, I'd like to keep an up-to-date mirror of Debian, but I
currently
2016 Nov 19
4
GlobalValue::AvailableExternallyLinkage
...tion but with a different name, i.e. sum() and sum_parallel().
After my pass I will run ThreadSanitizer instrumentation pass only on the new copy of the functions, i.e. only the “_parallel” functions will be instrumented by tsan.
In some programs that I am compiling, the functions such as atoi and atof get cloned but I want to avoid this, and I noticed that only those functions have GlobalValue::AvailableExternallyLinkage, so I was wondering if checking the linkage is enough to avoid those library functions or there could be situations of functions with that linkage but that have the body implem...
2016 Nov 19
2
GlobalValue::AvailableExternallyLinkage
Hi,
could anybody explain what GlobalValue::AvailableExternallyLinkage means?
I implemented an instrumentation pass that creates a clone of a function.
For some programs I noticed that also function such as “atoi”, “atof”, “__strspn_c2”, etc. they get cloned even if I am not implementing them in the module.
I would like to avoid cloning those functions, so I noticed that they have GlobalValue::AvailableExternallyLinkage linkage.
Checking if they have GlobalValue::AvailableExternallyLinkage would it be enough to ign...
2016 Nov 19
2
GlobalValue::AvailableExternallyLinkage
...ame, i.e. sum() and sum_parallel().
>> After my pass I will run ThreadSanitizer instrumentation pass only on the new copy of the functions, i.e. only the “_parallel” functions will be instrumented by tsan.
>>
>> In some programs that I am compiling, the functions such as atoi and atof get cloned but I want to avoid this, and I noticed that only those functions have GlobalValue::AvailableExternallyLinkage, so I was wondering if checking the linkage is enough to avoid those library functions or there could be situations of functions with that linkage but that have the body implem...
2016 Nov 20
2
GlobalValue::AvailableExternallyLinkage
...parallel().
>>>> After my pass I will run ThreadSanitizer instrumentation pass only on the new copy of the functions, i.e. only the “_parallel” functions will be instrumented by tsan.
>>>>
>>>> In some programs that I am compiling, the functions such as atoi and atof get cloned but I want to avoid this, and I noticed that only those functions have GlobalValue::AvailableExternallyLinkage, so I was wondering if checking the linkage is enough to avoid those library functions or there could be situations of functions with that linkage but that have the body implem...
2006 Jul 24
2
fentonups driver patch for Effekta MHD3000 UPS
...; /* on line */
/* only allow these when OL since they're bogus when OB */
! if (pstat[2] == '1') { /* boost or trim in effect */
! if (util < lownorm)
! status_set("BOOST");
!
! if (util > highnorm)
! status_set("TRIM");
}
if (atof(battvolt) > chrglow) {
bvoltp = ((atof(battvolt) - chrglow) / chrgrange) * 100.0;
--- 347,363 ----
status_set("OL"); /* on line */
/* only allow these when OL since they're bogus when OB */
! if (is_online) {
! if(pstat[2] == '1')
! status_set(&quo...
2007 Nov 21
1
[1.4 - Record] How to tell if user did leave a msg?
Hello
I didn't find the answer in the ATOF 2nd Ed: When using the Record()
application, I need to know how it ended: Did the user leave a
message, or did he hang up?
If the latter, Asterisk stops right there, while I need to run some
other commands before hanging up:
========
exten => _[1-4],n,Playback(/root/asterisk_sound_files/leave_...
2007 Jan 08
0
Re: nut: Ippon driver with SmartWinner 1000: charge value fix
Hello Ace,
2007/1/6, ace <ace@ezotop.ru>:
> Hello Arnaud,
>
> Ippon driver with SmartWinner 1000: charge value fix
>
> nut-2.0.2:ippon.c:line 31:
> -- bcharge = ((atof (batvlt) - 10.2) / 3.4) *100.0;
> ++ bcharge = ((atof (batvlt) - 24.0) / 3.4) *100.0;
>
> sorry for no comments, i'm bad in english
the ippon driver has just been removed from the nut trunk, and is now
replaced by the megatec driver.
You're welcome to try this one and report back...
2007 Jul 14
3
Strange C programming problem
...uot;%s\n", argv[1]);
errno = 0;
ldbl = strtof (argv[1], &endp);
if (errno != 0)
printf ("strtof failed! errno=%d\n", errno);
printf ("%f\n", (double) ldbl);
printf ("%f\n", (double) strtof (argv[1], (char **)NULL));
printf ("%f\n", (double) atof (argv[1]));
return 0;
}
Compile it with:
cc -O0 -g -o x4 x4.c
then run it like this:
./x4 2.5
and I'd EXPECT it to produce this output:
2.5
2.5
2.5
2.5
but it actually produces this:
2.5
1075838976.000000
1075838976.000000
2.500000
the typecase of the arg in the 3 printf c...
2005 Sep 14
4
Converting coordinates to actual distances
Hello,
I've been searching for a method of converting Lat/Lon decimal
coordinates into actual distances between points, and taking into
account the curvature of the earth. Is there such a package in R? I've
looked at the GeoR package, but this does not seem to contain what I am
looking for. Ideally the output would be a triangular matrix of
distances.
Thanks in advance,
Paul Brewin
2017 Aug 02
2
Cross compiling C++ program
Hello,
As a newcomer to the libcxx implementation, I'll probably ask a silly question, but why following example can be compiled natively, but not cross compiled?
#include <cstdlib>
using ::atof;
int main() {
return 0;
}
Native compile: clang++ -o example example.cpp
Cross compile: clang++ -fno-builtin -fno-exceptions -fcheck-new -nostdlib -ffreestanding -target arm-none-eabi -march=armv7-m -mcpu=cortex-m4 -Wall -Wshadow -Wundef -g -Os -fno-strict-aliasing -fomit-frame-pointer -mcpu=cor...
2008 Jul 29
2
[LLVMdev] llvm-gcc linking errors
...ed here
trirast.o(.text+0x1290): In function `atol':
: multiple definition of `atol'
main.o(.text+0x14d0): first defined here
trirast.o(.text+0x12c0): In function `atoll':
: multiple definition of `atoll'
main.o(.text+0x1500): first defined here
trirast.o(.text+0x12f0): In function `atof':
: multiple definition of `atof'
main.o(.text+0x1530): first defined here
collect2: ld returned 1 exit status
make: *** [trirast] Error 1
16:25|paul at tabu:~/>
2008 Feb 16
0
[LLVMdev] linux/x86-64 codegen support
...b's print *arglist shows too much information....
$ /home/edwin/llvm-svn/obj42/./prev-gcc/cc1 charset.i
vprintf getchar fgetc_unlocked getc_unlocked getchar_unlocked putchar
fputc_unlocked putc_unlocked putchar_unlocked feof_unlocked
ferror_unlocked gnu_dev_major gnu_dev_minor gnu_dev_makedev atof atoi
atol atoll stat lstat fstat mknod cpp_in_system_header ustrcmp ustrncmp
ustrcspn ustrlen uxstrdup ustrchr ufputs one_utf8_to_cppchar
one_cppchar_to_utf8 one_utf8_to_utf32 one_utf32_to_utf8
one_utf8_to_utf16 one_utf16_to_utf8 conversion_loop convert_utf8_utf16
convert_utf8_utf32 convert_utf16_u...
2003 Feb 28
2
ogg123 -k 1:59 patch.ogg # minutes and seconds
...-Naur vorbis-tools-1.0.orig/ogg123/cmdline_options.c vorbis-tools-1.0/ogg123/cmdline_options.c
--- vorbis-tools-1.0.orig/ogg123/cmdline_options.c Thu Jul 11 04:44:39 2002
+++ vorbis-tools-1.0/ogg123/cmdline_options.c Thu Feb 27 13:37:46 2003
@@ -50,6 +50,24 @@
{0, 0, 0, 0}
};
+double minsec_atof(const char *nptr)
+{
+ const char *p = nptr;
+ double min = 0.0;
+ double sec = 0.0;
+
+ while (*p && *p != '.') {
+ if (*p >= '0' && *p <='9')
+ sec = sec * 10 + (*p-'0');
+ else
+ if (*p == ':') {
+ min = sec;
+ sec = 0.0;...
2009 Aug 11
6
[LLVMdev] Build issues on Solaris
...e" so using -g would seem redundant, The error message
was
as follows: "/usr/xpg4/bin/nm: -e or -g set, -u ignored".
Actually it was the -u that's redundant - the -g was necessary for
GenLibDeps.pl:
$ nm -p -u libLLVMCore.a
libLLVMCore.a[AsmWriter.o]:
__asert
atof
_GLOBAL_OFFSET_TABLE_
isalnum
... etc ...
$ nm -p -g libLLVMCore.a
libLLVMCore.a[AsmWriter.o]:
0000000000 U __assert
0000000000 U atof
0000000000 U _GLOBAL_OFFSET_TABLE_
0000000000 U isalnum
The latter being what GenLibDeps.pl expects to see. All else being
equal though, it might...
2009 Aug 18
0
[LLVMdev] Build issues on Solaris
...The error message
> was
> as follows: "/usr/xpg4/bin/nm: -e or -g set, -u ignored".
>
> Actually it was the -u that's redundant - the -g was necessary for
> GenLibDeps.pl:
>
> $ nm -p -u libLLVMCore.a
> libLLVMCore.a[AsmWriter.o]:
> __asert
> atof
> _GLOBAL_OFFSET_TABLE_
> isalnum
> ... etc ...
>
> $ nm -p -g libLLVMCore.a
> libLLVMCore.a[AsmWriter.o]:
> 0000000000 U __assert
> 0000000000 U atof
> 0000000000 U _GLOBAL_OFFSET_TABLE_
> 0000000000 U isalnum
>
> The latter being what GenLibDeps.pl...
2008 Feb 16
2
[LLVMdev] linux/x86-64 codegen support
Interestingly, in the .i file there are 2 __builtin_alloca, and
EmitBuiltinAlloca is only being called once.
Andrew
On 2/16/08, Andrew Lenharth <andrewl at lenharth.org> wrote:
> libcpp/charset.c:631 turns into:
>
> %tmp16 = tail call i64 @strlen( i8* %to ) nounwind readonly
> ; <i64> [#uses=1]
> %tmp18 = tail call i64 @strlen( i8* %from ) nounwind
2007 Jul 15
3
[LLVMdev] Floating point constants (bug?)
>From the language guide:
"The one non-intuitive notation for constants is the optional
hexadecimal form of floating point constants. For example, the form
'double 0x432ff973cafa8000' is equivalent to (but harder to read than)
'double 4.5e+15'. The only time hexadecimal floating point constants
are required (and the only time that they are generated by the
disassembler) is
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...0] == 'E') {
- if (isdigit(CurPtr[1]) ||
+ if (isdigit(CurPtr[1]) ||
((CurPtr[1] == '-' || CurPtr[1] == '+') && isdigit(CurPtr[2]))) {
CurPtr += 2;
while (isdigit(CurPtr[0])) ++CurPtr;
}
}
-
+
llvmAsmlval.FPVal = new APFloat(atof(TokStart));
- return FPVAL;
+ return FPVAL;
}
/// FPConstant [-+]?[0-9]+[.][0-9]*([eE][-+]?[0-9]+)?
@@ -784,31 +787,32 @@ int LLLexer::LexPositive() {
// label.
if (!isdigit(CurPtr[0]))
return CurPtr[-1];
-
+
// Skip digits.
- for (++CurPtr; isdigit(CurPtr[0]); ++CurPtr)...