Project

General

Profile

Actions

Bug #820

open

Hex rounding of floating point values works wrong for ARM soft float

Added by Dmitry M. over 9 years ago. Updated over 8 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Category:
libcrystax
Target version:
Start date:
12/26/2014
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm
Host OS:
Toolchain:
Android version:
CrystaX NDK Version:

Description

Running device test [armeabi]: crystax-test-stdio2 (test-printfloat)
/opt/android/android-sdk-mac/platform-tools/adb -s "HT011P800177" shell "cd /data/local/tmp/ndk-tests && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests ./test-printfloat"
1..11
ok 1 - printfloat
ok 2 - printfloat
ok 3 - printfloat
ok 4 - printfloat
ok 5 - printfloat
ok 6 - printfloat
ok 7 - printfloat
ok 8 - printfloat
ok 9 - printfloat
ok 10 - printfloat
jni/test-printfloat.c:326: printf("%.11A", 0x1.23456789abcdep0) ==> [0X1.23456789ABDP+0], expected [0X1.23456789ABCP+0]
1
---> TEST FAILED!!

It only happens for 'armeabi' binaries, i.e. built in soft float mode

Actions #1

Updated by Dmitry M. over 9 years ago

  • Subject changed from printf("%.11A", 0x1.23456789abcdep0) produce wrong result for ARM soft float to Hex rounding of floating point values works wrong for ARM soft float
  • Description updated (diff)
Actions #2

Updated by Dmitry M. over 9 years ago

BTW, the same error happens when running this test on x86 emulator. On real x86 device test passed.

Actions #3

Updated by Dmitry M. over 9 years ago

  • Target version set to 10.1.0
Actions #4

Updated by Dmitry M. over 9 years ago

  • Target version deleted (10.1.0)
Actions #5

Updated by Dmitry M. about 9 years ago

  • Priority changed from Low to Normal
Actions #6

Updated by Dmitry M. almost 9 years ago

  • Target version set to 10.3.0
Actions #7

Updated by Dmitry M. over 8 years ago

  • Target version changed from 10.3.0 to 11.0.0
Actions

Also available in: Atom PDF