由买买提看人间百态

topics

全部话题 - 话题: definely
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
s***h
发帖数: 487
1
来自主题: Military版 - 再开个数学话题
Banach-Tarski paradox 之 Costco 切西瓜问题的诡异之处,是在于切成五块的切面,
也就是 manifold,跟普通家用切西瓜的切面,的巨大差别。
其实普通家用西瓜刀的切面,也就啊马工说的 binary partition function (choice
function),在严格实数集上,也是 non-definable 的,或者说该图灵机刹不住车。
但区别在于,如果我们把普通西瓜刀在严格实数集上,看成一个逐次无限逼近的
approximate solution sequence ,或者成为牛逼顿可逼近,那么这个可无限逼近的
sequence 的
每一点都是图灵可停机的,只是序列太长。
但 Banach-Tarski paradox 的切面嘛,喝喝喝喝喝喝喝!!


: 简单的说就是实数集上所有硬射的 axiom of choice 的 choice
function 都是
non-

: definable 的,但不是所有的 non-definable choice function 的硬射
,都会
造成

: Banach-Tarski... 阅读全帖

发帖数: 1
2
我可以看得到,copy paste将就看下吧
Image
CreditCreditPhoto illustration by Joan Wong. Photographs by Ronghui Chen for
The New York Times.
Skip to content
Skip to site index
Where Does Affirmative Action Leave Asian-Americans?
A high-profile lawsuit against Harvard is forcing students and their
families to choose sides.
CreditCreditPhoto illustration by Joan Wong. Photographs by Ronghui Chen for
The New York Times.
By Jay Caspian Kang
Photographs by Ronghui Chen
Published Aug. 28, 2019
Updated Sept. ... 阅读全帖
w********9
发帖数: 8613
3
FINA裁决的分析部分是很详细合理的
希望CAS也能公布它自己的分析
https://www.swimmingworldmagazine.com/news/sun-yang-verdict-the-fina-doping-
panel-ruling-that-triggered-wada-action/
6. ANALYSIS
6.1 A fundamental issue to evaluate is whether the Athlete was properly
notified by the IDTM testing team. This is mandated in ISTI Article 5.4.
Specifically, whether the DCO and the DCA and the BCA provided to the
Athlete, pursuant to the ISTI, proper official documentation from IDTM
evidencing their authority to collect a sample fr... 阅读全帖
h*l
发帖数: 807
4
来自主题: Military2版 - F-22 Assertions and Facts
read between the lines,you can figure out what it means.
Assertion: F-22 production uses a shim line and national spreading of
suppliers has cut quality, thus the F-22 lacks interchangeable parts.
Fact: The F-22 does not have a shim line. During the earliest stages of
production while tooling was undergoing development, there were a few
aircraft with slight differences which were subsequently modified. The F-22
supplier base is the best in the industry, as demonstrated by the aircraft’
s high qu... 阅读全帖
o****g
发帖数: 657
5
Definitely, all diseases can be defined by whoever feels strong enough about
that specific topic. That's why diabetes is already defined as a non-
disease by candy makers and homophobia has been defined as a terminal
illness by homos.
g********d
发帖数: 4174
6
Do people infected with human immunodeficiency virus (HIV) have an increased
risk of cancer?
Yes. People infected with HIV have a substantially higher risk of some types
of cancer than uninfected people of the same age (1–4). Three of these
cancers are known as "acquired immunodeficiency syndrome (AIDS)-defining
cancers" or "AIDS-defining malignancies": Kaposi sarcoma, non-Hodgkin
lymphoma, and cervical cancer. A diagnosis of any one of these cancers marks
the point at which HIV infection has pr... 阅读全帖
g********d
发帖数: 4174
7
http://www.scotusblog.com/
摘要:今年或NEXT TERM(明年?)最高法院会以5:4承认同性婚姻, JUSTICE
KENNEDY会站在历史正确的一边。(这有点太乐观了,而且讲的不具体)
Erwin Chemerinsky
Posted Friday, August 19th, 2011 11:35 am
The time for marriage equality has finally arrived
Ewrin Chemerinsky, Dean and Professor of Law at University of California,
Irvine, predicts a narrow same-sex victory at the Court.
The following contribution to our same-sex marriage symposium is by Erwin
Chemerinsky, Dean and Distinguished Professor of Law, University of
Californ... 阅读全帖
m******8
发帖数: 2153
8
BOSTON — A legal battle over a law that denies federal benefits to married
gay couples is headed to a federal appeals court in Massachusetts, the first
state in the nation to legalize gay marriage.
The federal Defense of Marriage Act, enacted by Congress in 1996, defines
marriage as a union between a man and a woman and prevents the federal
government from recognizing same-sex marriages.
A federal judge in Massachusetts declared a key section of the law
unconstitutional in 2010 after Attorney Ge... 阅读全帖
t*******e
发帖数: 2113
9
来自主题: QueerNews版 - prop8 and windsor are granted

沒錯,你說的對。
就目前的這兩件案子,有否 standing 和 違憲與否,是分開的問題。
加州的案子如果認為沒有standing,高院也不太可能不了了之,
就違憲的問題高院還是會回答的。
紐約州的案子,standing 的問題簡單一些。
兩案合并,重點就不在standing。
在于兩個案子的 writ petitions 里所提出的問題,
加州:
Whether the Equal Protection Clause of the
Fourteenth Amendment prohibits the State of
California from defining marriage as the union of a man
and a woman.
紐約:
Section 3 of the Defense of Marriage Act (DOMA)
defines the term “marriage” for all purposes under
federal law, including the provision of federal benefits,
as “on... 阅读全帖
s**********t
发帖数: 1846
10
An Open Letter to Shi-Min Fang
from Robert Root-Bernstein, Ph. D., Professor of Physiology,
Michigan State University, East Lansing, MI 48824 USA;
r******[email protected].
Dated 3 August 2011.
A number of people, including myself, have accused you of plagiarizing my
work. You and your followers have denied it. Let’s use this difference of
opinion to educate ourselves about what constitutes plagiarism in and see if
we can reach an accord.
Let me begin by stating that I am basing my arguments on The Univ... 阅读全帖
s*******u
发帖数: 2249
11
Palin’s Definition of ‘Bush Doctrine’ Hits the Gibson Mark
By Bill Sammon
ABC News’ Charles Gibson, who is being credited with stumping Sarah Palin
on the definition of the “Bush Doctrine,” has himself defined the nebulous
phrase in a variety of ways, including one that mirrored Palin’s disputed
explanation.
Gibson and his colleagues have been all over the map in defining the Bush
Doctrine over the last seven years. In 2001, Gibson himself defined it as “
a promise that all terrorists organizati
e***s
发帖数: 1397
12
来自主题: USANews版 - here is the law - U.S.C. 1304(e)
USC is not up to you to "define" and "explain". You can save your blahblah
to the judge.
btw, who said I can not kill another person? Define to me what is "kill"? If
I shoot someone to death, I did not kill him, the gun did - or the bullet
did. The law did not say I can not shoot another person.
If I beat someone to death, I did not kill him. Define "I". My hands are not
"I". My hands killed the person. My fists did. They were out of my control
and they beat the guy to death. If you want to put
l****z
发帖数: 29846
13
来自主题: USANews版 - Obama, the Dream
By William L. Gensert
Barack Obama is a dream. In 2008, the dream was hope and change. In 2012,
it will be progress, thwarted by evil partisans and selfish greed. As
Gertrude Stein said, "there is no there there." He needs enemies to draw
attention from his lack of depth, for he is truly a mile wide and an inch
deep. He is an illusion -- always appearing to be more than he is, always,
more promise than reality. He is, and always has been, the sum projection
of what others want him to be. ... 阅读全帖
l****z
发帖数: 29846
14
来自主题: USANews版 - How and When to Discriminate?
By Trevor Thomas
The NAACP recently decided to (surprise!) side with President Obama and
liberals across the U.S. and endorse same-sex marriage. The board of
directors for the organization released a statement declaring that "civil
marriage is a civil right and a matter of civil law." Roslyn Brock,
chairman of the NAACP's board of directors, declared, "We have and will
oppose efforts to codify discrimination into law."
Of course, one of the most frequent and favorite cries of the left is the
d... 阅读全帖
c******g
发帖数: 1217
15
http://www.washingtonpost.com/blogs/ezra-klein/wp/2012/09/24/ev
On “60 Minutes” last night, Mitt Romney said it again. “I want to keep
the current progressivity in the code. There should be no tax reduction for
high income people.”
You’ve heard Romney say this — or some variant of it –dozens of times
before. What’s changed since then is that Romney has admitted that his tax
cuts, if they’re not going to add to the deficit, will have to increase
taxes on people he defines as middle income and cut... 阅读全帖
C****n
发帖数: 2324
16
来自主题: USANews版 - 07,08房市崩盘的真正原因
First of all, I believe blaming China is just a saying to get elected.
Then, depend how you define the health of the body.
I define the body health as: How influential of US in the world.
If you define the body health as everybody has to be comfortable, then we
have a different definition.
Rich got richer or poor get poorer may not be bad.
The financial crisis is the wealth redistribution, that after the crisis,
nobody invest. That your heart stopped popping blood, thus you are dying.
In your bo... 阅读全帖
b********e
发帖数: 162
17
来自主题: USANews版 - Romney's real problem
The question is what the defination of "good education" is.
My defination is "to give the student the ability to survive and prosper in
a complex society".
You probably have a different defination.

Romneys,
C****n
发帖数: 2324
18
来自主题: USANews版 - The purpose of the government
The debate we have between GOP/Dem, comes down to this question:
What is the purpose of the government?
If you define the government's purpose is to promote "Common Good", then we
need to define two things:
1. Define "Common Good".
2. Does this mean the government can do ANYthing , I mean ANYthing, to
promote common good?
I guess most likely, we have a big difference on the definitions of "common
good", thus we have a different expectations from the government.
l****z
发帖数: 29846
19
The 20 Greatest Quotations From Rush Limbaugh
If you listen to liberals, you'd think that Rush Limbaugh is the de facto
boss of the entire Republican Party. So, if they're going to portray him
that way, then it seems like a good idea to give people -- who have yet to
listen to his radio show --information about his message that goes beyond
out-of-context quotations supplied by liberals who loathe him. There are
millions of Republicans, myself included, who became conservatives because
of hearing... 阅读全帖
l****z
发帖数: 29846
20
来自主题: USANews版 - America’s Normalizing Of The Abnormal
By Mark Rogers 12/28/2013 ·
This statement from GLAAD, a collection of gay and lesbian members:
“Phil Robertson should look African American and gay people in the eyes and
hear about the hurtful impact of praising Jim Crow laws and comparing gay
people to terrorists. If dialogue with Phil is not part of next steps then A
&E has chosen profits over African American and gay people – especially its
employees and viewers.”
The utter nonsense of that statement accusing Robertson of comparing gay
peop... 阅读全帖
n**1
发帖数: 318
21
来自主题: USANews版 - 2014: The Year Propaganda Came Of Age
http://www.zerohedge.com/news/2014-12-27/2014-year-propaganda-c
2014: The Year Propaganda Came Of Age
From just about as early in my life as I can remember, growing up as a child
in Holland, there were stories about World War II, and not just about Anne
Frank and the huge amounts of people who, like her, had been dragged off to
camps in eastern Europe never to come back, but also about the thousands who
had risked their lives to hide Jewish and other refugees, and the scores
who had been execute... 阅读全帖
x********e
发帖数: 35261
22
来自主题: USANews版 - 更为合理的暗号解读
http://beforeitsnews.com/scandals/2016/11/breaking-the-language-of-a-pedophile-wikileaks-reveals-secret-sex-code-talk-2436730.html
Here is few words of the Pedophilia Dictionary ( there are more im working
on). This is a breaking story, I have done my best to cross reference slang
terms, so the ones without a link are only by one source. Sorry, Not a
popular subject….
Cheese Pizza = child pornography http://www.urbandictionary.com/define.php?term=cheese+pizza
Cheese = young girl http://www.se... 阅读全帖
x********e
发帖数: 35261
23
来自主题: USANews版 - 更为合理的暗号解读
http://beforeitsnews.com/scandals/2016/11/breaking-the-language-of-a-pedophile-wikileaks-reveals-secret-sex-code-talk-2436730.html
Here is few words of the Pedophilia Dictionary ( there are more im working
on). This is a breaking story, I have done my best to cross reference slang
terms, so the ones without a link are only by one source. Sorry, Not a
popular subject….
Cheese Pizza = child pornography http://www.urbandictionary.com/define.php?term=cheese+pizza
Cheese = young girl http://www.se... 阅读全帖
c*****r
发帖数: 8227
24
华尔街日报社论
Trump’s Defining Speech
In Poland, he asks the West to defend its values of faith and freedom.
July 6, 2017 7:00 p.m. ET
1212 COMMENTS
The White House description of Donald Trump’s speech Thursday in Warsaw was
simply, “Remarks by President Trump to the People of Poland.” In truth,
Mr. Trump’s remarks were directed at the people of the world. Six months
into his first term of office, Mr. Trump finally offered the core of what
could become a governing philosophy. It is a determined and af... 阅读全帖
a*********a
发帖数: 3656
25
来自主题: USANews版 - 反对限制bump stock
我不care bump stock. 但是看一下那个提案 HR-3999。提法是任何parts increase
the rate of fire。这给了DC的官僚几乎无限的权利逐渐禁止很多他们不喜欢的东西。
H.R.3999 - to prohibit the manufacture, possession, or transfer of any part
or combination of parts that is designed and functions to increase the rate
of fire of a semiautomatic rifle but does not convert the semiautomatic
rifle into a machinegun, and for other purposes. 10/19/2017
whats defined as the proper rate of fire? what s defined as a part? whats
defined as a combo of parts? some bu... 阅读全帖
u****n
发帖数: 7521
26
How America Can Rise Again
Is America going to hell? After a year of economic calamity that many fear has sent us into irreversible decline, the author finds reassurance in the peculiarly American cycle of crisis and renewal, and in the continuing strength of the forces that have made the country great: our university system, our receptiveness to immigration, our culture of innovation. In most significant ways, the U.S. remains the envy of the world. But here’s the alarming problem: our governin... 阅读全帖
c*****j
发帖数: 92
27
来自主题: Classified版 - 阿里巴巴美国招聘多个职位
高级国际支付解决方案工程师
工作年限 3年以上
学历要求 本科
岗位描述 本岗位工作地点:美国–Santa Clara, CA.
Customer solution engineers are key players in solution selling processes.
This person is expected to have consulting, pre-sales, and post-sales
experiences, able to quickly understand customer requirements and able to
suggest solutions to satisfy customer requirements. The tasks include
writing proposals, developing quick prototypes, and technical related sales
support. This person must be a quick learner, a good communicator and ... 阅读全帖
d********8
发帖数: 74
28
According to the IRS, 75% of the tax cheating is done by individuals—mostly
middle-income earners. Most of the rest of the cheating is done by
businesses. Cash-intensive businesses and service providers, from self-
employed handypeople to doctors, are the worst offenders.
How People Cheat on Their Taxes
Most cheating is from deliberate—actual or willful—underreporting of
income. This is called tax evasion—the most commonly charged tax crime. A
government study found the most underreporting of in... 阅读全帖
m***e
发帖数: 428
29
来自主题: Faculty版 - 华人社会里的西方社会科学
华人社会里的西方社会科学
丁学良
一 引言
自从一九八○年代中期以来,笔者有机会在数所大学和研究院里任教、作研究或参与短
期学术交流项目。这些大学和研究院分别属于三个华人社会——香港、中国大 陆和台
湾,及两个西人社会——美国和澳大利亚。本文便是基于我在这些教育和学术机构里讲
解社会理论和比较社会学时对学生的观察和思考。在行文讨论中,我会 作两个层次上
的比较:把华人学生与西方学生进行比较,和把不同华人社会里的学生进行比较。前一
层次上的比较有助于凸现在非西方社会及文化背景下成长起来的 华人学生,在接受西
方社会科学过程中遭遇的一系列特定的困难。后一层次上的比较则有助于我们更仔细及
深入地分辨出这些特定的困难之根源何在。这里所说的 “学生”是广义的,包括社会
科学的新从业者。
简要说来,这些特定的困难有三方面的根源。其一是语言性质的 (linguistic,包括翻
译技术) 。有一些西方社会科学的概念和术语,很难在中文里找到对等物,即便被费力
地译成中文,扭曲的程度也颇显著,往往不是启发而是蒙蔽和误导了读者(包括学生) 。
第二个方面的困难根源是本体性质(ontological),即... 阅读全帖
o********r
发帖数: 775
30
来自主题: FleaMarket版 - ua里程换的机票还能改期吗?
就是award ticket的规定,UA网上的,不过你要是1K好像不用交钱
Saver Awards: Saver Awards can be redeemed for fewer miles than Standard
Awards. See the Saver Award chart for specific mileage amounts.
Capacity-control restrictions apply.
Award restrictions: No minimum stay restrictions. Maximum stay restrictions
exist per booking rules (within 331 days of booking date). Standby is
permitted for other flights on ticketed date for travel wholly on United.
Booking restrictions: Awards must be booked 24 hours in advance of t... 阅读全帖
D*****t
发帖数: 558
31
Pension is a difined benefit retirement plan, meaning the benefit payment to
the retiree is defined by the plan. As such, the pension is fully
responsible for investment and payout. Investment risk falls solely on the
pension, not the investor. ( consider social security a giant national
pension) 401 k is a defined contribution plan, where the contribution by the
employee wnd employer is defined. It is a self managed plan by investors,
who bear the investment risk fully.
Companies sponsoring Tra... 阅读全帖
b****m
发帖数: 366
32
来自主题: Investment版 - 说一下我这几年犯的投资错误
It seems like we have similar belief in value investing but have different
definition of "active" fund. I define a fund "active" by turnover ratio
higher than 50%. you define "active" by simply as the opposite of "passive",
which means fund that's not an index fund is active fund. To me, active
funds are managed by active traders, not active investors.
Active investor also invest actively once he/she saw an opportunity, and
then buy and hold because he/she believes in the long term opportunity,... 阅读全帖
r**u
发帖数: 42
33
来自主题: Investment版 - Obama提案对529 plan征税
Reveal Navigation Options
The Wall Street Journal
show search
Close Search
Submit Search
850 189
POLITICS AND POLICY
Push to Tax ‘529’ Plans Stokes Debate
Obama Touts Proposal as Means to Restructure Student Aid, but Critics See
Challenges for Middle Class
ENLARGE
By JOSH MITCHELL
Updated Jan. 22, 2015 4:04 p.m. ET
240 COMMENTS
President Barack Obama ’s push to start taxing college-saving accounts,
including the popular “529” accounts, would affect millions of Americans
who are stashing money fo... 阅读全帖
a**r
发帖数: 661
34
401K is not pension. 401k is defined contribution while pension
is defined benefit.
for pension, you will get fixed money (defined benefit) as long
as you live.
for 401k, the contribution (18k in your case and plus your
employer's match) is fixed. you decide when to withdrawal and
how much to withdrawal after you retire.
Social security is kind of pension. it stops afer you die.
g*******y
发帖数: 1930
35
来自主题: JobHunting版 - 问一些coding题
unsigned char BitSetCountTable256[256]
{
# define B2(n) n, n+1, n+1, n+2
# define B4(n) B2(n), B2(n+1), B2(n+1), B2(n+2)
# define B6(n) B4(n), B4(n+1), B4(n+1), B4(n+2)
B6(0), B6(1), B6(1), B6(2)
};
wow,这个太赞了!
w******1
发帖数: 520
36
static int BitSetCount256[256] =
{
#define B2(n) n, n+1, n+1, n+2,
#define B4(n) B2(n), B2(n+1), B2(n+1), B2(n+2),
#define B6(n) B4(n), B4(n+1), B4(n+1), B4(n+2),B6(0), B6(1), B6(1), B6(2)
}
这个不是很明白。。。 定义完了, 直接用么?
l******t
发帖数: 12659
37
来自主题: JobHunting版 - size_type是干嘛用的?
因为ivect.size()是unsigned的;
size_type:
Type defined by the string and vector classes that is capable of containing
the size of any string or vector, respectively. Library classes that define
size_type define it as an unsigned type.
k**n
发帖数: 482
38
the matrix A will be a very sparse block-tridiagonal matrix if you use
simple central difference scheme to discretize the first and second
derivatives of u w.r.t. s and v, there is a function in Matlab called "
spdiags" that can define this matrix efficiently, basically you need to
define all the nonzero entries of matrix A into several vectors and use
those vectors to define A, the index of each row of A corresponds to the
index in the vector u(t) one by one, hope this helps
K******g
发帖数: 1870
39
来自主题: JobHunting版 - C++ Q42: (C22)
a
extern只是declare不是define,第二个如果定义了,会hide被declare的那个,所以
compile

one of the 2 is defined. It will not compile if both are defined.
g*******s
发帖数: 490
40
感想,居然第一题就考到了goto。。我靠。。
有两三道题程序实在是太长,一堆指针+loop,看不清楚,不过这些程序基本是找错。。只能看答案猜了
最好两台电脑,一台要打程序,查资料操作不过来,如果有帮手就更好了
1. variable definition 和 declaration的 区别
2. 怎么是最portable的方法操作integer最高位的那个byte,比如设1
3. vfprintf考到了
4. char *x;
x="abcd"
请问这个操作的意义,合法不合法?空间是怎么allocate
5. freebsd某个头文件的一个macro
#if defined xxxx
#define _p(xxx) (xxx)
#else
#define _p(xxx) ()
#end
what does this macro for
6. memcpy 在某个iso xxx标准中的标准declaration是
7. memmve
8.哪个方法是一个c program必须的方法,main?
9. c提供了哪个方法获取 any file的 size
10. file * fp ... 阅读全帖
x*****p
发帖数: 1707
41
Quantity Needed: 1 Position
Job Class: Quality Engineer 1
Location: San Francisco , CA
You will participate in feature design, create test plans and test
media, automate test plans, and maintain testing infrastructure.
Responsibilities:
Work on a highly committed team in a fast-paced, productive environment
Write test plans and develop test media, unit tests, and web
applications as defined by the test plan
Work with developers to design features and write detailed
specifications
Define te... 阅读全帖
e*****e
发帖数: 1275
42
来自主题: JobHunting版 - c++ class default functions?

In C++03 there are 4:
*
Default constructor: Declared only if no user-defined constructor is
declared. Defined when used
*
Copy constructor - declared only if the user hasn't declared one.
Defined if used
*
Copy-assignment operator same as above
*
Destructor same as above
In C++0x there are two more:
* Move constructor
* Move-assignment operator
放狗查的,我记得也就那前面4个。
我记得有人argue过copy constructor 不算default function.
J**9
发帖数: 835
43
Sorry. did not read your example carefully.
In the following example
SOCKET accept(
__in SOCKET s,
__out struct sockaddr *addr,
__inout int *addrlen
);
__in: pass by value or read only
__out: write only
__inout: R/W
I bet this is just for better codes reading.
somewhere, there must be something like this
#define __in
#define __out
#define __inout
compiler will throw them away, but this is very friendly for codes readers.
f*****y
发帖数: 444
44
I am preparing algorithm, wrote the following algorithm. Share with you. Not
sure whether it is a duplicate post or not.
//---- Breadth Fast Search algorithm ---
// circular queue
int head = 0;
int tail = 0;
#define Q_EMPTY (head==tail)
#define Q_FULL ((tail-head+1)%SIZE==0)
#define SIZE 10
struct Node* q[SIZE];
void put(struct Node* x)
{
if (x==NULL) return;
if (Q_FULL) return; //queue full
q[tail] = x;
tail = (tail+1) % SIZE;
return;
}
struct Node* get()
{
if (Q_EMPT... 阅读全帖
F****n
发帖数: 3271
45
来自主题: JobHunting版 - 一道OO设计题
上面的答案基本上都是过时的over-engineering.
Google时代的答案是这样的:
Person {
String typeOfDisability;
// or int typeOfDisability;
}
// defines type of disability as constants.
// regards null or define a special constant as normal;
// you can just set or get the value, no need for "cure methods"
为啥要这样:
1. Simple, minimalist;
2. Open and dynamic, not bound to a pre-defined type.
c*****n
发帖数: 96
46
来自主题: JobHunting版 - amazon面试题目讨论贴3
Use factory pattern:
//Define a abstract class Cell which the application (Excel) will
//process.
public abstract class Cell {
....
public TValue getValue();
}
// Define concrete cell class
public class LiteralCell : Cell { // '500'
public override TValue getValue() { ... }
}
public class ExpressionCell :Cell { // 'A5 + A10'
public override TValue getValue() { ....}
}
public class FunctionCell : Cell { // 'f(A1, A2, A5)'
public override TValue getValue() { ....}
}
// define ... 阅读全帖
b******7
发帖数: 92
47
#define BLOCK_SIZE 1024
#define ALIGN(size,unit) (((size)+(unit-1))/(unit)*(unit))
struct ChunkHead{
ChunkHead * next;
};
#define CHUNK_SIZE ALIGN(sizeof(ChunkHead) + BLOCK_SIZE, sizeof(int))
ChunkHead * firstChunk;
void initChunk(void * addr, size_t size)
{
firstChunk = NULL;
Chunk * pre = NULL;
for(int i = 0; i < size/CHUNK_SIZE; i++)
{
ChunkHead * cur = (ChunkHead *)(addr + i* CHUNK_SIZE);
if( pre != NULL)
... 阅读全帖
s********r
发帖数: 403
48
不知道下面这种满不满足你的需求
一般来讲,宏函数短小,主要还是靠精确的设计不靠debug
$ cat macro.c
#include
#define PRINT(str) \
do \
{ \
int i = 1; \
printf("%s %dn", (str), i); \
} \
while (0);
int main(void)
{
const char *sz_in = "Hello";
PRINT(sz_in);
return 0;
}
gcc -ggdb3 macro.c
(gdb) info MACRO PRINT
Defined at /usr/local/src_test/macro.c:3
#define PRINT(str) do { int i = 1; printf("%s %dn", (str), i); } while (0);
(gdb) si
0x0000000000400540 15 PRINT(sz_in);
(gdb) p i
$1 = 1
(gdb) p sz_in... 阅读全帖
x*******i
发帖数: 79
49
来自主题: JobHunting版 - V 家招 Kernel Test Developer
Posting Title MTS - Kernel Test Developer
About Us VMware is the leader in virtualization and cloud infrastructure
solutions that enable our more than 500,000 enterprise and mid-market
customers to thrive in the Cloud Era by simplifying, automating and
transforming the way they build, deliver and consume IT. We enable people
and organizations by radically simplifying IT through software
virtualization with a focus on three core missions: End-User Computing (EUC)
, Hybrid Cloud and Software... 阅读全帖
j**y
发帖数: 462
50
不好意思 JD有点长 Sorry, No fresh pls. Seattle based. email to:
[email protected]
/* */
Walt Disney Parks and Resorts Online
Staff Software Engineer (IOS)
Responsibilities
Understanding WDPRO architectural vision and how it helps meet WDPRO
business objectives
Leading small to medium size teams to deliver and execute on a project
Analyzing user stories and participating in sprint planning, scrums, demos
and retrospectives
Accountable for uptime and high-availability for all solutions
Accou... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)