mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
committed by
Alan Carvalho de Assis
parent
afb0e33138
commit
d6c24312aa
@@ -48,7 +48,7 @@
|
||||
double ceil(double x)
|
||||
{
|
||||
double result;
|
||||
asm volatile ( "vrintp.f64\t%P0, %P1" : "=w" (result) : "w" (x) );
|
||||
asm volatile("vrintp.f64\t%P0, %P1" : "=w"(result) : "w"(x));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
float ceilf(float x)
|
||||
{
|
||||
float result;
|
||||
asm volatile ( "vrintp.f32\t%0, %1" : "=t" (result) : "t" (x) );
|
||||
asm volatile("vrintp.f32\t%0, %1" : "=t"(result) : "t"(x));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -210,23 +210,23 @@ int up_relocate(FAR const Elf32_Rel *rel, FAR const Elf32_Sym *sym,
|
||||
*
|
||||
* upper_insn:
|
||||
*
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +----------+---+-------------------------------+--------------+
|
||||
* |1 1 1 |OP1| OP2 | | 32-Bit Instructions
|
||||
* +----------+---+--+-----+----------------------+--------------+
|
||||
* |1 1 1 | 1 0| S | imm10 | BL Instruction
|
||||
* +----------+------+-----+-------------------------------------+
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +-------+---+----------------------+-----------+
|
||||
* |1 1 1|OP1| OP2 | | 32Bit Instruction
|
||||
* +-------+---+-+---+----------------+-----------+
|
||||
* |1 1 1| 1 0| S | imm10 | BL Instruction
|
||||
* +-------+-----+---+----------------------------+
|
||||
*
|
||||
* lower_insn:
|
||||
*
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +---+---------------------------------------------------------+
|
||||
* |OP | | 32-Bit Instructions
|
||||
* +---+--+---+---+---+------------------------------------------+
|
||||
* |1 1 |J1 | 1 |J2 | imm11 | BL Instruction
|
||||
* +------+---+---+---+------------------------------------------+
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +--+-------------------------------------------+
|
||||
* |OP| | 32Bit Instruction
|
||||
* +--+-+--+--+--+--------------------------------+
|
||||
* |1 1|J1| 1|J2| imm11 | BL Instruction
|
||||
* +----+--+--+--+--------------------------------+
|
||||
*
|
||||
* The branch target is encoded in these bits:
|
||||
*
|
||||
@@ -385,23 +385,23 @@ int up_relocate(FAR const Elf32_Rel *rel, FAR const Elf32_Sym *sym,
|
||||
*
|
||||
* upper_insn:
|
||||
*
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +----------+---+-------------------------------+--------------+
|
||||
* |1 1 1 |OP1| OP2 | | 32-Bit Instructions
|
||||
* +----------+---+--+-----+----------------------+--------------+
|
||||
* |1 1 1 | 1 0| i | 1 0 1 1 0 0 | imm4 | MOVT Instruction
|
||||
* +----------+------+-----+----------------------+--------------+
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +-------+---+-----------------------+----------+
|
||||
* |1 1 1|OP1| OP2 | | 32Bit Instruction
|
||||
* +-------+---+-+---+-----------------+----------+
|
||||
* |1 1 1| 1 0| i | 1 0 1 1 0 0 | imm4 | MOVT Instruction
|
||||
* +-------+-----+---+-----------------+----------+
|
||||
*
|
||||
* lower_insn:
|
||||
*
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +---+---------------------------------------------------------+
|
||||
* |OP | | 32-Bit Instructions
|
||||
* +---+----------+--------------+-------------------------------+
|
||||
* |0 | imm3 | Rd | imm8 | MOVT Instruction
|
||||
* +---+----------+--------------+-------------------------------+
|
||||
* 1 1 1 1 1 1
|
||||
* 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
|
||||
* +--+-------------------------------------------+
|
||||
* |OP| | 32Bit Instruction
|
||||
* +--+--------+----------+-----------------------+
|
||||
* |0 | imm3 | Rd | imm8 | MOVT Instruction
|
||||
* +--+--------+----------+-----------------------+
|
||||
*
|
||||
* The 16-bit immediate value is encoded in these bits:
|
||||
*
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
float floorf(float x)
|
||||
{
|
||||
float result;
|
||||
asm volatile ( "vrintm.f32\t%0, %1" : "=t" (result) : "t" (x) );
|
||||
asm volatile("vrintm.f32\t%0, %1" : "=t"(result) : "t"(x));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user