30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

through the simulator. The return value is the value returned by the host<br />

file system.<br />

File: remove.c<br />

rename<br />

Description: Rename a file or directory.<br />

Include: <br />

Prototype: int rename(const char *oldname, const char<br />

*newname);<br />

Argument: oldname pointer to the old name<br />

newname pointer to the new name<br />

Return Value: Returns ‘0’ if it is successful. On an error, the function returns a<br />

nonzero<br />

value.<br />

Default Behavior: As distributed, the parameters are passed to the host file<br />

system<br />

through the simulator. The return value is the value returned by the host<br />

file system.<br />

File: rename.c<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

DS51456B-page 372<br />

sbrk<br />

2004 Microchip Technology Inc.<br />

Description: Extend the process's data space by a given increment.<br />

Include: None<br />

Prototype: void * sbrk(int incr);<br />

Argument: incr number of characters to increment/decrement<br />

Return Value: Return the start of the new space allocated, or ‘-1’ for errors.<br />

Remarks: sbrk()adds incrcharacters to the break value and changes the<br />

allocated space accordingly. incrcan be negative, in which case the<br />

amount of allocated space is decreased.<br />

sbrk()is used to dynamically change the amount of space allocated<br />

for the calling process's data segment. The change is made by<br />

resetting the process's break value and allocating the appropriate<br />

amount of space. The break value is the address of the first location<br />

beyond the end of the data segment. The amount of allocated space<br />

increases as the break value increases.<br />

This is a helper function called bythe Standard C Library function<br />

malloc().<br />

Default Behavior: If the global variable __curbrkis zero, the function calls<br />

div.ud<br />

__builtin_mulss<br />

Mô tả: Chức năng tính toán p1 p0x sản phẩm. Đối số chức năng là<br />

ký số nguyên, và kết quả chức năng là một số nguyên dài đã ký kết. Các<br />

tùy chọn-Wconversionscan dòng lệnh được sử dụng để phát hiện<br />

chuyển đổi tín hiệu không mong muốn.<br />

Prototype: ký __builtin_mulss dài (const int ký p0,<br />

const ký int p1);<br />

Đối số: p0 nhơn<br />

p1 nhân<br />

Quay trở lại giá trị: Trả về giá trị số nguyên dài ký của p1 p0x sản phẩm.<br />

Assembler<br />

Điều hành / Máy<br />

Hướng dẫn:<br />

mul.ss<br />

MPLAB C30 Built-in chức năng<br />

2004 Microchip Technology Inc DS51456B trang 377<br />

__builtin_mulsu<br />

Mô tả: Chức năng tính toán p1 p0x sản phẩm. Đối số chức năng là<br />

số nguyên có dấu hiệu hỗn hợp, và kết quả chức năng là một ký dài<br />

số nguyên. Các tùy chọn-Wconversionscan dòng lệnh được sử dụng để<br />

phát hiện chuyển đổi tín hiệu không mong muốn. Chức năng này hỗ trợ đầy đủ<br />

phạm vi giải quyết modesof hướng dẫn, bao gồm cả ngay lập tức<br />

chế độ cho toán hạng p1.<br />

Prototype: ký __builtin_mulsu dài (const int ký p0,<br />

const int p1);<br />

Đối số: p0 nhơn<br />

p1 nhân<br />

Quay trở lại giá trị: Trả về giá trị số nguyên dài ký của p1 p0x sản phẩm.<br />

Assembler<br />

Điều hành / Máy<br />

Hướng dẫn:<br />

mul.su<br />

__builtin_mulus<br />

Mô tả: Chức năng tính toán p1 p0x sản phẩm. Đối số chức năng là<br />

số nguyên có dấu hiệu hỗn hợp, và kết quả chức năng là một ký dài<br />

số nguyên. Các tùy chọn-Wconversionscan dòng lệnh được sử dụng để<br />

phát hiện chuyển đổi tín hiệu không mong muốn. Chức năng này hỗ trợ đầy đủ<br />

phạm vi giải quyết modesof hướng dẫn.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!