| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 // This file contains all the missing pieces that LK should implement soon | 5 // This file contains all the missing pieces that LK should implement soon |
| 6 // but currently does not. | 6 // but currently does not. |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 | 9 |
| 10 // LK currently lacks an implementation for abort. | 10 // LK currently lacks an implementation for abort. |
| 11 void abort(void) { | 11 void abort(void) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 #endif | 76 #endif |
| 77 } bits; | 77 } bits; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 int __signbit(double val) { | 80 int __signbit(double val) { |
| 81 union IEEEl2bits as_bits; | 81 union IEEEl2bits as_bits; |
| 82 as_bits.e = val; | 82 as_bits.e = val; |
| 83 return as_bits.bits.sign; | 83 return as_bits.bits.sign; |
| 84 } | 84 } |
| 85 | 85 |
| OLD | NEW |